package com.example.qu_tao.entity;

import java.io.Serializable;

public class CaiGouInfo implements Serializable {
    private String id;          // 采购信息ID
    private String type;        // 货品类型
    private String variety;     // 货品品种
    private String quantity;    // 需求量
    private String unit;        // 单位
    private String source;      // 期望货源地
    private String cycle;       // 采购周期
    private String region;      // 收货地区
    private String description; // 采购描述
    private String publishTime; // 发布时间

    // 构造方法
    public CaiGouInfo() {
    }

    // Getter和Setter方法
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getVariety() {
        return variety;
    }

    public void setVariety(String variety) {
        this.variety = variety;
    }

    public String getQuantity() {
        return quantity;
    }

    public void setQuantity(String quantity) {
        this.quantity = quantity;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public String getCycle() {
        return cycle;
    }

    public void setCycle(String cycle) {
        this.cycle = cycle;
    }

    public String getRegion() {
        return region;
    }

    public void setRegion(String region) {
        this.region = region;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getPublishTime() {
        return publishTime;
    }

    public void setPublishTime(String publishTime) {
        this.publishTime = publishTime;
    }

    // 重写toString方法，便于显示
    @Override
    public String toString() {
        return "货品类型: " + type + "\n" +
                "货品品种: " + variety + "\n" +
                "需求量: " + quantity + unit + "\n" +
                "期望货源地: " + source + "\n" +
                "采购周期: " + cycle + "\n" +
                "收货地区: " + region + "\n" +
                "发布时间: " + publishTime;
    }
}